const express = require('express');
var homeController = require('../controller/home.controller');

module.exports = (app) => {
    var router = express.Router();

    router.route('/status')
        .get(homeController.getStatus);

    router.route('/merchant')
        .get(homeController.findMerchantByAccount);

    router.route('/merchant')
        .put(homeController.applyStore);

    app.use('/sec', router);
    return router;
}
